package com.luckdraw.domain;

import java.util.Date;

import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.ColType;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

/**
 * 参与日志
 * @ClassName: LuckDrawLog 
 * @author gaotaochen
 * @Description: 
 * @date 2017年1月17日 上午10:57:16 
 *
 */
@Table("LuckDraw_Activity_Log")
public class ActivityLog {
	
	/**
	 * ID
	 */
	@Id
//	@Id(auto=false)
//	@Prev(@SQL(value="select LuckDraw_Activity_Log_SEQ.Nextval from dual",db=DB.ORACLE))
	@ColDefine(width=10,precision=0)
	private int id;
	
	/**
	 * 用户ID
	 */
	@Column("user_id")
	@ColDefine(type=ColType.VARCHAR,notNull=true,width=36)
	private String userId;
	
	/**
	 * 支付订单ID
	 */
	@Column("order_id")
	@ColDefine(type=ColType.VARCHAR,notNull=true,width=36)
	private String orderId;
	
	/**
	 * 支付方式
	 */
	@Column("pay_type")
	@ColDefine(type=ColType.VARCHAR,notNull=true,width=20)
	private String payType;
	
	/**
	 * 支付金额
	 */
	@Column("pay_amount")
	@ColDefine(width=10,precision=0)
	private int payAmount;
	
	/**
	 * 奖励金额
	 */
	@Column("gain_amount")
	@ColDefine(width=10,precision=0)
	private int gainAmount;
	
	/**
	 * 参与时间
	 */
	@Column("partake_time")
	private Date partakeTime;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getPayType() {
		return payType;
	}

	public void setPayType(String payType) {
		this.payType = payType;
	}

	public int getPayAmount() {
		return payAmount;
	}

	public void setPayAmount(int payAmount) {
		this.payAmount = payAmount;
	}

	public int getGainAmount() {
		return gainAmount;
	}

	public void setGainAmount(int gainAmount) {
		this.gainAmount = gainAmount;
	}

	public Date getPartakeTime() {
		return partakeTime;
	}

	public void setPartakeTime(Date partakeTime) {
		this.partakeTime = partakeTime;
	}

}